;*******************************************************************************
; Title:	X
; Author:	Original by Acorn Computers Ltd 1996
;		Converted to ObjAsm source code by Philip Ludlam
; Copyright:	(C) Philip Ludlam 2006
; Version:	1.01, 7 May 2006
;
; Changes:	Updated for the A9home by Philip Ludlam
;
;*******************************************************************************
; This program is free software; you can redistribute it and/or modify it
; under the terms of the GNU General Public License as published by the Free
; Software Foundation; either version 2 of the License, or (at your option)
; any later version.
;
; This program is distributed in the hope that it will be useful, but WITHOUT
; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
; FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more
; details.
;
; You should have received a copy of the GNU General Public License along with
; this program; if not, write to the Free Software Foundation, Inc., 59 Temple
; Place - Suite 330, Boston, MA 02111-1307, USA
;
;*******************************************************************************


		TTL	> X

		GET	OSLib:oslib.hdr.types
		GET	OSLib:oslib.hdr.OS
		GET	AsmLib2:hdr.RegsBoth

		AREA	|main|, CODE, READONLY

		ENTRY

;-------------------------------------------------------------------------------

Start		B	Entry			; Entry instruction
		DCD	&79766748		; Magic value 1
		DCD	&216C6776		; Magic value 2
		DCD	End-Start		; Read only size
		DCD	0			; Read/write size
		DCD	32			; 26 or 32 bit build

Entry		MOV	r0, r1
		SWI	XOS_CLI
		ClearFlags
		MOV	pc, lr

Licence		DCB	" PJL, 2006. Licence: GPL."

		ALIGN

End
		END
